import request from '../../utils/request'

export function requestCommentlist () {
    return new Promise(resolve => {
        request.get('/comment/list').then(res => {
            resolve(res.data)
        })
    })
}

// 商家回复
export function requestReturnBack (commentid, msg) {
    return new Promise(resolve => {
        request.post('/comment/back', {
            commentid,
            msg
        }).then(res => {
            resolve(res.data)
        })
    })
}
